Ext.define('Music', {
    extend: 'Ext.data.Model',
    idgen: { type: 'sequential', id: 'id' },
    fields: [
        {name: 'dates',  type: 'date'},
        {name: 'artist', type: 'string'},
        {name: 'time',   type: 'string', defaultValue: 'n/a'},
        {name: 'venue',  type: 'string'},
        {name: 'city',   type: 'string'},
        {name: 'cover',  type: 'string', defaultValue: 'n/a'},
        {name: 'info',   type: 'string'},
        {name: 'gmap',   type: 'string'},
        {name: 'track', type: 'string', convert:function(v,rec){return songs[rec.id];}         
        {name: 'sample', type: 'string', convert:function(v,rec){return mp3s[rec.id];}
//        {name: 'bio',    type: 'string', convert:function(v,rec){return bio[rec.id];}
    ]
});
